import instance from "./require";

//获取todolist接口
export let getTodolist=()=>{
    return instance.get('/todolist1')
}

//添加接口 payload = obj
export let addTodolist=(obj)=>{
    return instance.post('/todolist1',obj)
}

//删除接口 payload = id
export let delTodolist=(id)=>{
    return instance.delete(`/todolist1/${id}`) 
}